Fix: BO - dashactivity - module can't be SAVED properly#48
Conversation
Added method "saveDashConfig"
|
Hello @Codencode! This is your first pull request on dashactivity repository of the PrestaShop project. Thank you, and welcome to this Open Source community! |
|
Thanks for the PR. |
|
Hi @florine2623, PS 1.7.7.8 /**
* Check employee permission for module.
*
* @param array $variable (action)
* @param Employee $employee
*
* @return bool if module can be transplanted on hook
*/
public function getPermission($variable, $employee = null)
{
return Module::getPermissionStatic($this->id, $variable, $employee);
}PS 8.2.0 /**
* Check employee permission for module.
*
* @param string $variable (action)
* @param Employee $employee
*
* @return bool if module can be transplanted on hook
*/
public function getPermission($variable, $employee = null)
{
return Module::getPermissionStatic($this->id, $variable, $employee);
}I believe we should simply ignore the warning. |
|
@Codencode Yeah, just add this error here. :-) https://github.com/PrestaShop/dashactivity/blob/dev/tests/phpstan/phpstan-1.7.7.neon and here also, because in 1.7.8 it's still an array in the docs and it will also scream at you https://github.com/PrestaShop/dashactivity/blob/dev/tests/phpstan/phpstan-1.7.8.neon |
@Hlavtox, Thanks! |
|
@Codencode Good job, all good now! :-) |
|
@florine2623 Ready to go! :-) |
@Hlavtox Thank you! |
florine2623
left a comment
There was a problem hiding this comment.
Hello @Codencode ,
Thanks for the PR !
Wrks as expected as you can see :
Screen.Recording.2024-10-01.at.14.25.55.mov
It is QA ✅
|
Thanks everyone! |
Added method "saveDashConfig"