Пример #1
0
 /**
  * Added condition that scenario is not Inline. be aware
  * 'Inline' does not refer to inline-edit, but rather Inline view,
  * turned on in a quickView for example.
  */
 public function canEdit(Fields $field)
 {
     return !in_array($field->fieldName, $this->disableInlineEditingFor) && parent::canEdit($field) && $this->scenario !== 'Inline';
 }
Пример #2
0
 /**
  * Added condition that scenario is not Inline. be aware
  * 'Inline' does not refer to inline-edit, but rather Inline view,
  * turned on in a quickView for example.
  */
 public function canEdit($field = null)
 {
     return parent::canEdit($field) && $this->scenario !== 'Inline';
 }