Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used class argument AllowDynamicProperties #17251

Open
wants to merge 1 commit into
base: developer
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/Settings/MappedFields/models/Module.php
Expand Up @@ -7,6 +7,7 @@
* @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
*/
#[AllowDynamicProperties]
class Settings_MappedFields_Module_Model extends Settings_Vtiger_Module_Model
{
protected $record = false;
Expand Down
3 changes: 2 additions & 1 deletion modules/Settings/Workflows/models/Module.php
Expand Up @@ -15,6 +15,7 @@
/**
* Class settings workflows module model.
*/
#[AllowDynamicProperties]
class Settings_Workflows_Module_Model extends Settings_Vtiger_Module_Model
{
/**
Expand Down Expand Up @@ -157,7 +158,7 @@ public static function getExpressions()
/** {@inheritdoc} */
public function getListFields(): array
{
if (!property_exists($this, 'listFieldModels')) {
if (!isset($this->listFieldModels)) {
$fields = $this->listFields;
$fieldObjects = [];
$fieldsNoSort = ['module_name', 'execution_condition', 'all_tasks', 'active_tasks'];
Expand Down
1 change: 1 addition & 0 deletions modules/Settings/Workflows/models/Record.php
Expand Up @@ -15,6 +15,7 @@
/**
* Class settings workflows record model.
*/
#[AllowDynamicProperties]
class Settings_Workflows_Record_Model extends Settings_Vtiger_Record_Model
{
/**
Expand Down
2 changes: 1 addition & 1 deletion modules/Settings/Workflows/models/TaskRecord.php
Expand Up @@ -13,7 +13,7 @@
require_once 'modules/com_vtiger_workflow/VTTaskManager.php';

// Workflow Task Record Model Class

#[AllowDynamicProperties]
class Settings_Workflows_TaskRecord_Model extends Settings_Vtiger_Record_Model
{
/**
Expand Down