Skip to content

Commit

Permalink
Fix issue with multiple word names for New Tab position
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Aug 29, 2015
1 parent bd7a774 commit f172179
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BatchChildEditor.module
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BatchChildEditor extends WireData implements Module, ConfigurableModule {
'title' => 'Batch child editor',
'summary' => 'Quick batch creation (titles only or CSV import for other fields), editing, sorting, deletion, and CSV export of all children under a given page.',
'href' => 'http://modules.processwire.com/modules/batch-child-editor/',
'version' => 93,
'version' => 94,
'permanent' => false,
'autoload' => true,
'requires' => 'ProcessWire>=2.5.24',
Expand Down Expand Up @@ -361,7 +361,7 @@ class BatchChildEditor extends WireData implements Module, ConfigurableModule {

$this->modules->get('FieldtypeFieldsetTabOpen');
$field = new InputfieldFieldsetTabOpen;
$field->name = $this->sanitizer->pageName($currentData['tabName'],true);
$field->name = $this->sanitizer->fieldName($currentData['tabName']);
if(!$this->input->get->s) $field->collapsed = $currentData['loadOpen'] ? '' : ($currentData['openMethod'] == 'ajax' ? Inputfield::collapsedYesAjax : Inputfield::collapsedYes);
$field->label = $currentData['tabName'];
$form->add($field);
Expand All @@ -370,7 +370,7 @@ class BatchChildEditor extends WireData implements Module, ConfigurableModule {

$this->modules->get('FieldtypeFieldsetClose');
$field = new InputfieldFieldsetClose;
$field->name = $this->sanitizer->pageName($currentData['tabName'],true)."_END";
$field->name = $this->sanitizer->fieldName($currentData['tabName'])."_END";
$form->add($field);
}

Expand Down

0 comments on commit f172179

Please sign in to comment.