Duration of call is not displayed correctly in edit view #4978

Open
opened 2026-02-20 16:27:17 -05:00 by deekerman · 1 comment
Owner

Originally created by @QuickCRM on GitHub (Mar 17, 2023).

Issue

When editing a call that was created with a 15 minutes duration, duration shows 0 in the edit view

Expected Behavior

The duration should be the same as the original duration

Actual Behavior

Possible Fix

in CallHelper.php
Replace
$html .= get_select_options_with_id($focus->minutes_values, $focus->duration_minutes);
by
$html .= get_select_options_with_id($focus->minutes_values, (int)$focus->duration_minutes);

Steps to Reproduce

  1. Create a call with a 15 mn duration
  2. Save that call
  3. Edit that call again
  4. The duration is displayed as 0

Context

Your Environment

  • SuiteCRM Version used: 7.12.10
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): any
  • Environment name and version (e.g. MySQL, PHP 7): PHP 7.4
  • Operating System and version (e.g Ubuntu 16.04):
Originally created by @QuickCRM on GitHub (Mar 17, 2023). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> When editing a call that was created with a 15 minutes duration, duration shows 0 in the edit view <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> #### Expected Behavior <!--- Tell us what should happen --> The duration should be the same as the original duration #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> in CallHelper.php Replace $html .= get_select_options_with_id($focus->minutes_values, $focus->duration_minutes); by $html .= get_select_options_with_id($focus->minutes_values, (int)$focus->duration_minutes); #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Create a call with a 15 mn duration 2. Save that call 3. Edit that call again 4. The duration is displayed as 0 #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.12.10 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): any * Environment name and version (e.g. MySQL, PHP 7): PHP 7.4 * Operating System and version (e.g Ubuntu 16.04):
Author
Owner

@timo-ecm2 commented on GitHub (Jun 13, 2023):

It happens also in SuiteCRM - Version 7.13.3 - Sugar Version 6.5.25 (Build 344) - MariaDB 10.5, PHP 7.4.

@timo-ecm2 commented on GitHub (Jun 13, 2023): It happens also in SuiteCRM - Version 7.13.3 - Sugar Version 6.5.25 (Build 344) - MariaDB 10.5, PHP 7.4.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4978
No description provided.