You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested, that $forumSubParents is correctly filled. Because forum_parent dropdown works, I used $this->forumParents as value for forum_sub and nothing was displayed.
Only way I was able to fix it and get dropdown displayd was this: $this->fields['forum_sub']['writeParms'] = $forumSubParents;
but this way I need always set blank page.
this is not related but I think that correct query should be (added forum_sub), so you can add as forum_sub only forum that is not already assigned to some forum.
I tested this on php 7 (probably 7.0) on localhost and it worked without problems
On live site I couldn't get forum_sub dropdown displayed and only difference is php version. This part:
I tested, that
$forumSubParents
is correctly filled. Because forum_parent dropdown works, I used$this->forumParents
as value for forum_sub and nothing was displayed.Only way I was able to fix it and get dropdown displayd was this:
$this->fields['forum_sub']['writeParms'] = $forumSubParents;
but this way I need always set blank page.
this is not related but I think that correct query should be (added forum_sub), so you can add as forum_sub only forum that is not already assigned to some forum.
$data = e107::getDb()->retrieve('forum', 'forum_id,forum_name,forum_parent,forum_sub', 'forum_id != 0',true);
The text was updated successfully, but these errors were encountered: