Unable to unassign all files from a display group

Bug #1351884 reported by Dan Garner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Undecided
Dan Garner

Bug Description

Upgraded to Xibo-Server-1.6.2.

I am unable to remove all Assigned Files on a Display Group. I can remove all but one file. If I remove all files and try to remove the last file and click "Assign", I get "No integer found for Array, and return value is not an integer". The only way around the problem is to create a new Display Group.

Am I missing something here? It seems like a bug to me.

Tags: cms

Related branches

Dan Garner (dangarner)
Changed in xibo:
milestone: none → 1.6.3
assignee: nobody → Dan Garner (dangarner)
tags: added: cms
Revision history for this message
Dan Garner (dangarner) wrote :

Workaround:

Edit lib/pages/displaygroup.class.php and change line 778 to:

$mediaList = Kit::GetParam('MediaID', _POST, _ARRAY_INT, NULL, false);

Edit lib/data/displaygroup.data.class.php and remove the below lines from line:417

            // Check that some media assignments have been made
            if (count($mediaList) == 0)
                $this->ThrowError(25006, __('No media to assign'));

Changed in xibo:
status: New → Fix Committed
Revision history for this message
Colin Slaughter (cslaughter) wrote :

The Workaround, worked for me.
'
Thank you.

Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.