1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 07:21:03 +02:00

Support for admin-ui multiple images in a single field.

Usage: 'type' => 'images', 'data' => 'array'
This commit is contained in:
Cameron
2014-08-18 05:22:51 -07:00
parent f4bb971696
commit 3ca4734a18
3 changed files with 33 additions and 7 deletions

View File

@@ -2041,6 +2041,13 @@ class e_front_model extends e_model
*/
public function getIfPosted($key, $default = '', $index = null)
{
$d = $this->getDataFields();
if($d[$key] == 'array')
{
return e107::unserialize($this->getData((string) $key, $default, $index));
}
$posted = $this->getPostedData((string) $key, null, $index);
if(null !== $posted)
{