Save button not displayed for maps

Phoca Maps - displaying maps in Joomla! CMS
kehlig
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Feb 2015, 23:49

Save button not displayed for maps

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Save button not displayed for maps

Post by Jan »

Hi, can you see them when you are logged in as super user?

Jan
If you find Phoca extensions useful, please support the project
kehlig
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Feb 2015, 23:49

Re: Save button not displayed for maps

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Save button not displayed for maps

Post by Jan »

Hmmm, testing now without any problems, do you run some specific system plugin, or some extra ACL extension?
If you find Phoca extensions useful, please support the project
kehlig
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Feb 2015, 23:49

Re: Save button not displayed for maps

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Save button not displayed for maps

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Save button not displayed for maps

Post by Jan »

Set in version 3.0.3

Jan
If you find Phoca extensions useful, please support the project
Post Reply