Closed MichaelHoughton closed 9 years ago
That sounds like a bug, ill tag it up and look at it for you tomorrow.
Hi Michael,
I think that the ValidateMediaXml method that you arrived at by debugging is not quite right. Instead of checking to see if the mediaId
matches the one assigned to the Module, it should check that the mediaId
exists in the library and if so, make the assignment to the module itself.
I've made that modification and will attach the commit in a moment - can you try it?
Sure thing! Please let me know when the commit is in, and I will give this a whirl!
OK, she is there - its in my development fork, release/1.7.0 branch (I guess you can see/pull that)
Yep, I can! I will keep you posted.
Hey Dan - just need to see if we can get this one solved: https://github.com/xibosignage/xibo/issues/24
Then I can test out this API!
I am attempting to upload the following XML via the LayoutRegionMediaAdd method in the API.
The XML is for an image, as below:
However, I get an error when posting this. The error says "ID does not match".
I debugged the code, and found the following:
Line 1958 of lib/modules/module.class.php has the following:
The problem, as far as I can tell, is that the $this->mediaid variable is never defined in the API, so it is blank.
This problem exists on version 1.6 as well.