Limit the allowed number of labels to six, otherwise our form upload view
breaks and document that limit.
This commit is contained in:
parent
3bec47778a
commit
6bbabaebdd
@ -102,6 +102,12 @@ class IDF_Form_UploadArchiveHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: remove this once we allow more than six labels everywhere
|
||||||
|
if (count($entry['labels']) > 6) {
|
||||||
|
throw new Pluf_Form_Invalid(
|
||||||
|
sprintf(__('The entry %s in the manifest has more than the six allowed labels set.'), $entry['name']));
|
||||||
|
}
|
||||||
|
|
||||||
$this->entries[$entry['name']] = $entry;
|
$this->entries[$entry['name']] = $entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,8 +85,12 @@ This is the DTD for the format:
|
|||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The format is more or less self-explaining, all fields map to properties of a single download.
|
The format is more or less self-explaining, all fields map to properties of a single download. Note
|
||||||
One special element has been introduced though, <code>replaces</code>. If this optional element
|
that there is a limit of <strong>six</strong> labels that you can attach to a download, similar to
|
||||||
|
what the regular file upload functionality allows.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>One special element has been introduced and this is named <code>replaces</code>. If this optional element
|
||||||
is given, InDefero looks for a file with that name in the project and acts in one of the following
|
is given, InDefero looks for a file with that name in the project and acts in one of the following
|
||||||
two ways:
|
two ways:
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user