Just saw the calendar config so wanted to check out if they are effective, copied them to config_override.php and have setup
$sugar_config[ācalendarā][āitems_draggableā] = false;
$sugar_config[ācalendarā][āitems_resizableā] = false;
Ran R/R and went to Calendar, still the meeting is draggable and resizable . Anyone tried those before?
pgr
14 January 2020 12:11
2
cherub-chum:
draggable
I never tried playing with that, noā¦
As a test, you can try setting it directly here:
If it works, then we can think about how to get the value from the config to reach that point correctlyā¦
Not from those Options but another param at the top which disables the Dragging/Resizing.
global_edit = false;
* SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
* reasonably feasible for technical reasons, the Appropriate Legal Notices must
* display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM".
*/
*}
<script type="text/javascript">
global_langPrefix = "{$langprefix}";
global_edit = true;
global_view = "{$view}";
global_style = "{$style}";
global_t_step = {$t_step};
global_current_user_id = "{$current_user_id}";
global_current_user_name = "{$current_user_name}";
global_time_format = "{$time_format}";
global_enable_repeat = "{$enable_repeat}";
global_items_draggable = "{$items_draggable}";
global_items_resizable = "{$items_resizable}";
global_cells_per_day = {$cells_per_day};
pgr
14 January 2020 22:07
4
Ok, then I guess itās a matter of making that also a configurable variable like the other ones, instead of a hard-coded value.
Just curious, what are you trying to achieve with this? You donāt want your users to change the calendar by moving things around?
Yes, once the meetings are created, i donāt want them to drag/resize the meetings.
Would be good if we can setup this option per User basis as there might be scenarios where this feature would be very fruitful for the Admins, but not for Regular Users.
pgr
15 January 2020 09:44
6
Isnāt this integrated with Security Groups? I guess it isnāt, but for me the logic should beā¦
if user is allowed to edit meetings, then he should be allowed to drag and resize
if security groups block him from editing, then he shouldnāt be allowed
So I would actually make that fullcalendar
option dependent on the typical Security Groups check.
pgr
8 February 2020 16:39
7
This PR I just made is an example of how to add new settings to the Calendar, itās a good basis in case anyone wants to work on this