mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed phpstan issue
This commit is contained in:
parent
a29e87e5ac
commit
3ad088663f
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class LabelController extends AbstractController
|
||||||
if (($form->isSubmitted() && $form->isValid()) || ($generate && !$form->isSubmitted() && $profile instanceof LabelProfile)) {
|
if (($form->isSubmitted() && $form->isValid()) || ($generate && !$form->isSubmitted() && $profile instanceof LabelProfile)) {
|
||||||
|
|
||||||
//Check if the label should be saved as profile
|
//Check if the label should be saved as profile
|
||||||
if ($form->get('save_profile')->isClicked() && $this->isGranted('@labels.create_profiles')) {
|
if ($form->get('save_profile')->isClicked() && $this->isGranted('@labels.create_profiles')) { //@phpstan-ignore-line Phpstan does not recognize the isClicked method
|
||||||
//Retrieve the profile name from the form
|
//Retrieve the profile name from the form
|
||||||
$new_name = $form->get('save_profile_name')->getData();
|
$new_name = $form->get('save_profile_name')->getData();
|
||||||
//ensure that the name is not empty
|
//ensure that the name is not empty
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue