* [refac bug #65960] Hidden attribute field for edit execution.

This commit is contained in:
wangyidong
2025-10-10 10:22:12 +08:00
parent 0d764bf06a
commit 6a83e34a2b
2 changed files with 13 additions and 2 deletions
+2
View File
@@ -224,3 +224,5 @@ $fields->field('acl')
'userItems' => data('users'),
'userValue' => data('execution.whitelist')
));
if($project->model == 'ipd') $fields->field('attribute')->hidden();
+11 -2
View File
@@ -2761,7 +2761,11 @@ class pivotModel extends model
$drillField = $drillAlias . $drillField;
}
if(!empty($condition['value'])) $conditionSQLs[] = "t1.{$drillField}{$value}";
if(!empty($condition['value']))
{
if(!empty($condition['htmlspecialed'])) $value .= " OR t1.{$drillField} = {$condition['htmlspecialed']}";
$conditionSQLs[] = "(t1.{$drillField} {$value})";
}
}
$referSQL = $this->getReferSQL($objectTable, $whereSQL, $fieldList);
@@ -2829,7 +2833,12 @@ class pivotModel extends model
$filters = $pivotState->setFiltersDefaultValue($filterValues);
foreach($conditions as $index => $condition)
{
if(isset($condition['value'])) $conditions[$index]['value'] = " = '{$condition['value']}'";
if(isset($condition['value']))
{
$htmlspecialed = htmlspecialchars($condition['value']);
$conditions[$index]['value'] = " = " . $this->dbh->quote($condition['value']);
if($htmlspecialed != $condition['value']) $conditions[$index]['htmlspecialed'] = $this->dbh->quote($htmlspecialed);
}
}
$data = array();