New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LegacyContext::getLegacyAdminLink #11309
Conversation
…ded in some edge cases
@@ -125,7 +125,8 @@ public function importAction(Request $request) | |||
} | |||
|
|||
$formData = $form->getData(); | |||
if (!$errors = $formHandler->save($formData)) { | |||
$errors = $formHandler->save($formData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* | ||
* @return string | ||
*/ | ||
public function getLegacyAdminLink($controller, $withToken = true, $extraParams = array()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this should go into LegacyContext
class, rather than in Link
core class ?
As it is inspired by https://github.com/PrestaShop/PrestaShop/blob/develop/classes/Link.php#L807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, but then it should be in both no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matks done! ;)
Thank you @jolelievre |
This change is