Skip to content

Creating thold from console->data sources allows create thold without validation #691

@xmacan

Description

@xmacan

Create thold with wizard works fine - hi/low values are checked (low is lower then high, ...).

Create threshold from console -> data sources -> click Template name -> doesn't check hi/low (or others) limits.

In thold_validate_save function is exception for this:
/**

  • Only validate thresholds once they are created
  • This is required due to the wizard control on the
  • Thold page.
    */
    if ($type == 'thold' && empty($save['id'])) {
    return true;
    }

it's more complicated than I thought. So far I'm just logging the error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions