Skip to content

Commit 6a17c32

Browse files
fix: Bugfix menu generator (#952)
* docs: readme.md updated * bugfix - created the same menu item multiple times was fixed. Co-authored-by: Vishal InfyOm <[email protected]> Co-authored-by: Vajda Gábor <acgabor>
1 parent 469da56 commit 6a17c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/Scaffold/MenuGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function generate()
5151
{
5252
$this->menuContents .= $this->menuTemplate.infy_nl();
5353
$existingMenuContents = file_get_contents($this->path);
54-
if (Str::contains($existingMenuContents, '<span>'.$this->commandData->config->mHumanPlural.'</span>')) {
54+
if (Str::contains($existingMenuContents, '<p>'.$this->commandData->config->mHumanPlural.'</p>')) {
5555
$this->commandData->commandObj->info('Menu '.$this->commandData->config->mHumanPlural.' is already exists, Skipping Adjustment.');
5656

5757
return;

0 commit comments

Comments
 (0)