Page 1 of 1

Save button not displayed for maps

Posted: 20 Feb 2015, 00:12
by kehlig
Hi

I have a problem where the save and save and close buttons are not displayed when trying to add a new map. The user has permisson to create new maps and can click on new map but saving is not possible (Only the cancel button is shown). Any ideas what might be wrong.
The same user can create and save new markers.

Thanks

Re: Save button not displayed for maps

Posted: 22 Feb 2015, 01:09
by Jan
Hi, can you see them when you are logged in as super user?

Jan

Re: Save button not displayed for maps

Posted: 22 Feb 2015, 09:32
by kehlig
Yes, no problem with superuser privileges.
And I forgot to tell that the version of maps is 3.0.1 and Joomla is 3.3.6.

Re: Save button not displayed for maps

Posted: 27 Feb 2015, 13:52
by Jan
Hmmm, testing now without any problems, do you run some specific system plugin, or some extra ACL extension?

Re: Save button not displayed for maps

Posted: 03 Mar 2015, 20:40
by kehlig
Strange that this is working for you. No I have no extra ACL extensions or so.
But I belive that I found the cause of this, help me if I´m wrong.

In the code for "/com_phocamaps/views/phocamapsmap/view.html.php" I have changed line 39 from:
"$canDo = PhocamapsMapsHelper::getActions($this->state->get('filter.map_id'), $this->item->id);"
to:
"$canDo = PhocamapsMapsHelper::getActions($this->t, $this->state->get('filter.map_id'));" and that solved the problem for me.

Regards

Re: Save button not displayed for maps

Posted: 06 Mar 2015, 15:48
by Jan
Hi, yes, you are right, it is wrong there, I will fix it in next version. But still didn't find why I didn't get any limitation there :idea:

Thank you and yes, the code you have pasted here is right, so you right.

Jan

Re: Save button not displayed for maps

Posted: 23 Feb 2016, 21:28
by Jan
Set in version 3.0.3

Jan