Skip to content
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

Allow empty url - Fix PrestaShop/PrestaShop#18536 #74

Merged
merged 1 commit into from
May 4, 2022

Conversation

marsaldev
Copy link

@marsaldev marsaldev commented Apr 29, 2022

Questions Answers
Description? Allow empty url for the slides
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#18536.
How to test? Apply fix and create a slide without URL (delete the override tpl file in the classic-theme or hummingbird) 😊

marsaldev pushed a commit to marsaldev/classic-theme that referenced this pull request Apr 29, 2022
marsaldev pushed a commit to marsaldev/hummingbird that referenced this pull request Apr 29, 2022
@@ -28,15 +28,15 @@
<ul class="rslides">
{foreach from=$homeslider.slides item=slide}
<li class="slide">
<a href="{$slide.url}">
{if !empty($slide.url)}<a href="{$slide.url}">{/if}
Copy link
Member

@mparvazi mparvazi Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't impact for testing, this file has been override in classic theme.
https://github.com/PrestaShop/classic-theme/blob/develop/modules/ps_imageslider/views/templates/hook/slider.tpl

So how QA must be done?!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice question, I've created the PRs also for classic-theme and hummingbird
PrestaShop/classic-theme#27
PrestaShop/hummingbird#247

But I think that it's important that works at module level, than you can have the theme you want and override in it, but it's out of the module business, imho 😊

Copy link
Member

@mparvazi mparvazi Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw related PR's 👍

Which came first, the chicken or the egg? 😄

I think first of all need to merge PR on classic theme.

Then QA can be done here.

As I experienced fixing an issue on diffrent repos is really hard in PS 😉

NeOMakinG pushed a commit to PrestaShop/hummingbird that referenced this pull request Apr 29, 2022
Copy link

@matthieu-rolland matthieu-rolland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM code wise, shouldn't the issue be reopened since it's not really fixed ?

@florine2623 florine2623 self-assigned this May 4, 2022
Copy link
Contributor

@florine2623 florine2623 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @marsaldev ,

Thanks for the PR !

I tested this PR with PrestaShop/classic-theme#27.

Tested on branch 1.7.8.x and develop - PHP 7.4.

Tested the case on on existing slides form and on new slides form. We can add or not a Target URL.
On BO, the form is well saved. On FO, we can see the image slider properly.

It is QA ✅

@Progi1984 Progi1984 added this to the 3.1.1 milestone May 4, 2022
@Progi1984 Progi1984 merged commit 72f7496 into PrestaShop:dev May 4, 2022
@Progi1984
Copy link
Member

Thanks @marsaldev & @florine2623

Progi1984 added a commit to PrestaShop/classic-theme that referenced this pull request May 4, 2022
@mparvazi mparvazi mentioned this pull request Jun 27, 2022
@Hlavtox Hlavtox modified the milestones: 3.1.1, 3.1.2 Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ps_imageslider - url should be optional
7 participants