We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2583f57 commit 2a4818dCopy full SHA for 2a4818d
system/Model.php
@@ -1578,6 +1578,19 @@ public function errors(bool $forceDB = false)
1578
1579
return $error['message'] ?? null;
1580
}
1581
+
1582
+ /**
1583
+ * Allows to set allowed fields.
1584
+ * It could be used when you have to change default or override current allowed fields.
1585
+ *
1586
+ * @param array $allowedFields
1587
1588
+ * @return void
1589
+ */
1590
+ public function setAllowedFields(array $allowedFields)
1591
+ {
1592
+ $this->$allowedFields = $allowedFields;
1593
+ }
1594
1595
//--------------------------------------------------------------------
1596
0 commit comments