Skip to content

Commit

Permalink
Merge pull request #53 from 64j/3.1.x
Browse files Browse the repository at this point in the history
3.1.10
  • Loading branch information
64j authored Jan 6, 2024
2 parents 2ae374c + 4760150 commit ab0811d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion assets/plugins/templatesedit/class/templatesedit.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,14 @@ public function getTemplateVariables(): ?array
}
}
if (empty($this->config[$tabId][$colId])) {
unset($this->config[$tabId]);
unset($this->config[$tabId][$colId]);
}
}
}

if (empty($this->config[$tabId])) {
unset($this->config[$tabId]);
}
}

if (!empty($categories) && !empty($this->params['default.tab'])) {
Expand Down Expand Up @@ -584,6 +588,7 @@ protected function renderField(string $key, array $data, array $settings = []):
$data['pattern'] = isset($data['pattern']) ? ' pattern="' . $data['pattern'] . '"' : '';
$data['required'] = !empty($data['required']) ? ' required' : '';
$data['elements'] = $data['elements'] ?? '';
$data['type'] = $data['type'] ?? null;

if (isset($this->defaultFields[$key])) {
if (isset($data['type'])) {
Expand Down
4 changes: 2 additions & 2 deletions install/assets/plugins/templatesedit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* Кастомизация полей при редактировании документов
*
* @category plugin
* @version 3.1.9
* @version 3.1.10
* @package evo
* @internal @properties &showTvImage=Show TV thumbnail;list;yes,no;yes &showTvName=Show TV titles;list;yes,no;no &excludeTvCategory=Exclude TV from categories;text;
* @internal @properties &showTvImage=Show TV thumbnail;list;yes,no;no &showTvName=Show TV titles;list;yes,no;no &excludeTvCategory=Exclude TV from categories;text;
* @internal @events OnDocFormTemplateRender,OnDocFormRender,OnDocFormSave,OnTempFormRender,OnTempFormSave,OnTempFormDelete
* @internal @modx_category Manager and Admin
* @internal @installset base,sample
Expand Down

0 comments on commit ab0811d

Please sign in to comment.