Skip to content

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

Open
@QuickCRM

Description

@QuickCRM

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ModuleIssues & PRs related to modules that do not have specific labelPriority:ImportantIssues & PRs that are important; broken functions, errors - there are workaroundsStatus:Fix ProposedA issue that has a PR related to it that provides a possible resolutionType: BugBugs within the core SuiteCRM codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions