X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FGNUsocialProfileExtensions%2Factions%2Fprofilefields.php;h=1feea867716baa25a26854b83fb9477f079017e8;hb=51b1bab98ee75ae765d5cfad8b11027ec0b03a90;hp=d8c4e3dd321b8efa1b638fb7379f6fa09b27857b;hpb=3ad3535cd8d12787d1af95969b9576620abce4a9;p=quix0rs-gnu-social.git diff --git a/plugins/GNUsocialProfileExtensions/actions/profilefields.php b/plugins/GNUsocialProfileExtensions/actions/profilefields.php index d8c4e3dd32..1feea86771 100644 --- a/plugins/GNUsocialProfileExtensions/actions/profilefields.php +++ b/plugins/GNUsocialProfileExtensions/actions/profilefields.php @@ -54,7 +54,7 @@ class ProfilefieldsAdminPanelAction extends AdminPanelAction function saveSettings() { - $field = GNUsocialProfileExtensionField::staticGet('id', $this->trimmed('id')); + $field = GNUsocialProfileExtensionField::getKV('id', $this->trimmed('id')); if (!$field) $field = new GNUsocialProfileExtensionField(); $field->title = $this->trimmed('title'); @@ -63,14 +63,12 @@ class ProfilefieldsAdminPanelAction extends AdminPanelAction $field->systemname = $this->trimmed('systemname'); if (!gnusocial_field_systemname_validate($field->systemname)) { $this->clientError(_('Internal system name must be unique and consist of only alphanumeric characters!')); - return false; } if ($field->id) { if ($field->validate()) $field->update(); else { $this->clientError(_('There was an error with the field data.')); - return false; } } else { @@ -110,7 +108,7 @@ class ProfilefieldsAdminForm extends AdminForm $fieldsettitle = _("New Profile Field"); //Edit a field if ($this->out->trimmed('edit')) { - $field = GNUsocialProfileExtensionField::staticGet('id', $this->out->trimmed('edit')); + $field = GNUsocialProfileExtensionField::getKV('id', $this->out->trimmed('edit')); $title = $field->title; $description = $field->description; $type = $field->type;