Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	configs/versions.php
  • Loading branch information
k-samuel committed Aug 27, 2021
2 parents ea4201d + 65abb23 commit 2a8dc80
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
4 changes: 3 additions & 1 deletion classes/Dvelum/App/Backend/Designer/Module/Objects.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
namespace Dvelum\App\Backend\Designer\Module;

use Dvelum\App\Backend\Designer\Module;
use Dvelum\Designer\Factory;
use Dvelum\Designer\Manager;
use Dvelum\Designer\Project;
use Dvelum\Designer\Project\Container;
Expand Down Expand Up @@ -526,7 +527,7 @@ protected function getRelatedProjects($project, & $list)
}

$projectFile = $manager->findWorkingCopy($file);
$subProject = \Designer_Factory::loadProject($this->designerConfig, $projectFile);
$subProject = Factory::loadProject($this->designerConfig, $projectFile);
$list[] = [
'project' => $subProject,
'file' => $file
Expand All @@ -551,6 +552,7 @@ public function relatedProjectListAction()

if (empty($relatedProjects)) {
$this->response->success([]);
return;
}

$result = [];
Expand Down
3 changes: 2 additions & 1 deletion classes/Dvelum/App/Backend/Designer/Module/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

namespace Dvelum\App\Backend\Designer\Module;

use Dvelum\App\Backend\Designer\Generator\Component;
use Dvelum\App\Backend\Designer\Module;
use Dvelum\App\Backend\Localization\Manager;
use Dvelum\Config;
Expand Down Expand Up @@ -448,7 +449,7 @@ public function addTemplateAction()

$adapterObject = new $adapter();

if (!$adapterObject instanceof \Backend_Designer_Generator_Component) {
if (!$adapterObject instanceof Component) {
$this->response->error($this->lang->get('WRONG_REQUEST') . ' invalid adapter interface');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dvelum/module-designer",
"version": "1.6.0",
"version": "1.6.1",
"type": "dvelum3-module",
"description": "Designer module for DVelum",
"keywords": ["dvelum","designer"],
Expand Down
19 changes: 10 additions & 9 deletions configs/designer_templates.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php
return array(
array(
'icon'=>'',
'text' => 'Window Form',
'iconCls'=>'objectWindowIcon',
'adapter'=>'Backend_Designer_Generator_Component_Window',
'showType'=>'loaded'
)
);

return [
[
'icon' => '',
'text' => 'Window Form',
'iconCls' => 'objectWindowIcon',
'adapter' => \Dvelum\App\Backend\Designer\Generator\Component\Window::class,
'showType' => 'loaded'
]
];
2 changes: 1 addition & 1 deletion configs/versions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
return [
'designer' => '1.5.7'
'designer' => '1.6.1'
];

0 comments on commit 2a8dc80

Please sign in to comment.