mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 00:06:55 +02:00
Some minor fixes to enable deleting a field that is missing its Fieldtype module. Plus addition of hasPage property to Inputfield modules. And a couple other minor things.
This commit is contained in:
@@ -177,7 +177,7 @@ class Fieldgroup extends WireArray implements Saveable, Exportable, HasLookupIte
|
||||
* #pw-internal
|
||||
*
|
||||
* @param Field $field
|
||||
* @return bool
|
||||
* @return Fieldgroup $this
|
||||
*
|
||||
*/
|
||||
public function finishRemove(Field $field) {
|
||||
@@ -194,7 +194,7 @@ class Fieldgroup extends WireArray implements Saveable, Exportable, HasLookupIte
|
||||
* #pw-group-manipulation
|
||||
*
|
||||
* @param Field|string|int $field Field object, name or id.
|
||||
* @return bool
|
||||
* @return Fieldgroup $this
|
||||
*
|
||||
*/
|
||||
public function softRemove($field) {
|
||||
@@ -612,7 +612,7 @@ class Fieldgroup extends WireArray implements Saveable, Exportable, HasLookupIte
|
||||
if(!$inputfield) continue;
|
||||
if($inputfield->collapsed == Inputfield::collapsedHidden) continue;
|
||||
|
||||
$inputfield->value = $page->get($field->name);
|
||||
$inputfield->setAttribute('value', $page->get($field->name));
|
||||
|
||||
if($multiMode) {
|
||||
$fieldInputfields[$field->id] = $inputfield;
|
||||
|
Reference in New Issue
Block a user