Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-1427

Update to front page minigraphs and micrographs

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • None
    • Community Edition, Professional Edition
    • Web Interface
    • Revision 6923

    Description

      Patch makes minor changes to the show_minigraphs() and show_micrographs() functions in html/pages/front/default.php.

      1 - Skips empty graphs caused by a trailing or otherwise excess semicolon in the config.php ids definition.

      2 - Custom minigraph dimensions always apply, device graphs did not use them.

      3 - Fixes broken multi-graph links by urldecoding the id list if $type contains multi.

      The ids list for mini and micro graphs uses a comma and semicolon delimited string, so comma-separated ids for a multi-graph must be provided in urlencoded form (%2C). This already works fine with the graph image src and they appear on the front page, but the link href undergoes a urlencode, taking you to a broken graph url that only renders the first id.

      Attachments

        Activity

          People

            adama Adam Armstrong
            jpmasseo Jonathan Masseo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: