Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/0.6.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed May 21, 2014
2 parents 10b3829 + 9eac132 commit 5bb24a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ImportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function getName()

function getVersion()
{
return '0.6.1';
return '0.6.8';
}

function getDeveloper()
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Map fields (2)

Changelog
=================
###0.6.8###
- Only list sections for which the user has permissions, also fixing an entrytype listing bug if the first found section was a single.

###0.6.7###
- Bugfix: Criteria matching now checks all statuses and has no limit

Expand Down
7 changes: 5 additions & 2 deletions templates/upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
<form id="import-form" method="post" action="" class="centered" accept-charset="UTF-8" enctype="multipart/form-data">
<input type="hidden" name="action" value="import/uploadFile">

{% set sections = craft.sections.getAllSections() %}
{% set sections = {} %}
{% for section in craft.sections.getEditableSections() if section.type != 'single' %}
{% set sections = sections|merge([section]) %}
{% endfor %}

<table class="data">
<tr>
Expand All @@ -37,7 +40,7 @@
<div class="input">
<div class="select">
<select name="importSection" id="sections">
{% for section in sections if section.type != 'single' %}
{% for section in sections %}
<option value="{{ section.id }}">{{ section.name }}</option>
{% endfor %}
</select>
Expand Down

0 comments on commit 5bb24a5

Please sign in to comment.