Skip to content

Commit

Permalink
fix: wrapFields() not working
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Feb 22, 2023
1 parent 66d36b5 commit cc519bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RockMigrations.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function getModuleInfo()
{
return [
'title' => 'RockMigrations',
'version' => '3.3.0',
'version' => '3.3.1',
'summary' => 'The Ultimate Automation and Deployment-Tool for ProcessWire',
'autoload' => 2,
'singular' => true,
Expand Down Expand Up @@ -484,7 +484,8 @@ public function wrapFields(InputfieldWrapper $form, array $fields, array $fields
if (!$this->wire->input->get('wrapper')) {
// check for single field
if ($this->wire->input->get('field')) return;
if (!strpos((string)$this->wire->input->get('fields'), ",")) return;
$fieldsStr = $this->wire->input->get('fields', 'string');
if ($fieldsStr and !strpos($fieldsStr, ",")) return;
}

$_fields = [];
Expand Down

0 comments on commit cc519bf

Please sign in to comment.