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
Save button not displayed for maps
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save button not displayed for maps
Hi, can you see them when you are logged in as super user?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Feb 2015, 23:49
Re: Save button not displayed for maps
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.
And I forgot to tell that the version of maps is 3.0.1 and Joomla is 3.3.6.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save button not displayed for maps
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
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Feb 2015, 23:49
Re: Save button not displayed for maps
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save button not displayed for maps
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
Thank you and yes, the code you have pasted here is right, so you right.
Jan
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Save button not displayed for maps
Set in version 3.0.3
Jan
Jan
If you find Phoca extensions useful, please support the project