mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.2.1
# Conflicts: # core/restservices.class.inc.php # datamodels/2.x/itop-portal-base/portal/src/Form/ObjectFormManager.php # lib/composer/autoload_classmap.php # lib/composer/autoload_static.php
This commit is contained in:
@@ -1238,15 +1238,17 @@ class ObjectFormManager extends FormManager
|
||||
|
||||
foreach ($aCurrentValues as $sAttCode => $value)
|
||||
{
|
||||
if (!array_key_exists($sAttCode, $this->aFieldsAtts)) {
|
||||
continue;
|
||||
}
|
||||
$iAttributeFlags = $this->aFieldsAtts[$sAttCode];
|
||||
if ($iAttributeFlags & OPT_ATT_HIDDEN) {
|
||||
continue;
|
||||
}
|
||||
if ($iAttributeFlags & OPT_ATT_READONLY) {
|
||||
continue;
|
||||
if (count($this->aFieldsAtts) !== 0) {
|
||||
if (!array_key_exists($sAttCode, $this->aFieldsAtts)) {
|
||||
continue;
|
||||
}
|
||||
$iAttributeFlags = $this->aFieldsAtts[$sAttCode];
|
||||
if ($iAttributeFlags & OPT_ATT_HIDDEN) {
|
||||
continue;
|
||||
}
|
||||
if ($iAttributeFlags & OPT_ATT_READONLY) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (MetaModel::IsValidAttCode($sObjectClass, $sAttCode)) {
|
||||
|
||||
Reference in New Issue
Block a user