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

[Master Branch] - admin/view/template/localisation/location_list.twig #7442

Closed
straightlight opened this issue May 19, 2019 · 3 comments
Closed
Assignees

Comments

@straightlight
Copy link
Contributor

<td class="text-center" colspan="6">{{ text_no_results }}</td>

It's set to 6 but there are fewer TDs on the above of that file ...

@straightlight
Copy link
Contributor Author

In admin/controller/localisation/location.php file, in the getList() method, the:

$data['location'] should be changed to:

$data['locations']

In admin/view/template/localisation/location_list.twig file,

{% if location %}
{% for locations in location %}

{% if locations.location_id in selected %}

{% else %}

{% endif %}
{{ locations.name }}
{{ locations.address }}
{{ locations


{% endfor %}
{% else %}

{{ text_no_results }}

{% endif %}

should be reversed to:

{% if locations %}
{% for location in locations %}

{% if location.location_id in selected %}

{% else %}

{% endif %}
{{ location.name }}
{{ location.address }}


{% endfor %}
{% else %}

{{ text_no_results }}

{% endif %}

@condor2
Copy link
Contributor

condor2 commented Oct 27, 2019

@jeffreyeng-opencart

You forgot to change this line {% if locations.location_id in selected %} to {% if location.location_id in selected %}

@jeffreyeng-opencart
Copy link
Contributor

@condor2: Good catch. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants