Skip to content

Commit

Permalink
fix(section): cannot rename section twice
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 5, 2023
1 parent c4277d8 commit 7bbb9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/section.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function getDesignLabel(): string {
]);
$formId = $this->fields[PluginFormcreatorForm::getForeignKeyField()];
$onclick = 'plugin_formcreator.showSectionForm(' . $formId . ', ' . $sectionId . ');';
$html = '<a href="#" onclick=' . $onclick . '" data-field="name">';
$html = '<a href="#" onclick="' . $onclick . '" data-field="name">';
$html .= "<sup class='plugin_formcreator_conditions_count' title='" . __('Count of conditions', 'formcreator') ."'>$nb</sup>";
$html .= '<span>';
$html .= empty($this->fields['name']) ? '(' . $sectionId . ')' : $this->fields['name'];
Expand Down

0 comments on commit 7bbb9b8

Please sign in to comment.