Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10517

Cannot insert an empty row/column into the screen

    Details

      Description

      First issue:

      There is an error message if moving all screen items into left side or down:

      Screen "Zabbix server" cell X - 0 Y - 1 is already taken. [screenedit.php:250 ? addScreenRow() ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CScreen->update() ? CScreen->updateReal() ? CScreen->replaceItems() ? CScreenItem->update() ? CScreenItem->validateUpdate() ? CScreenItem->checkDuplicateResourceInCell() ? CApiService::exception() in include/classes/api/services/CScreenItem.php:965]

      It is easy to reproduce it with this API request:

      {
          "screenid" : 16,
          "vsize" : 3,
          "screenitems" : [
              {
                  "screenitemid" : 46,
                  "screenid" : 16,
                  "resourcetype" : 0,
                  "resourceid" : 525,
                  "width" : 400,
                  "height" : 100,
                  "x" : 1,
                  "y" : 2,
                  "colspan" : 1,
                  "rowspan" : 1,
                  "elements" : 0,
                  "valign" : 0,
                  "halign" : 0,
                  "style" : 0,
                  "url" : "",
                  "dynamic" : 0,
                  "sort_triggers" : 0,
                  "application" : "",
                  "max_columns" : 3
              },  
              {
                  "screenitemid" : 45,
                  "screenid" : 16, 
                  "resourcetype" : 0,
                  "resourceid" : 524,
                  "width" : 400, 
                  "height" : 156,
                  "x" : 0, 
                  "y" : 2, 
                  "colspan" : 1,
                  "rowspan" : 1,
                  "elements" : 0,
                  "valign" : 0,
                  "halign" : 0,
                  "style" : 0,
                  "url" : "",
                  "dynamic" : 0,
                  "sort_triggers" : 0,
                  "application" : "",
                  "max_columns" : 3
              },  
              {
                  "screenitemid" : 44,
                  "screenid" : 16, 
                  "resourcetype" : 2,
                  "resourceid" : 1,
                  "width" : 500,
                  "height" : 100,
                  "x" : 0,
                  "y" : 1,
                  "colspan" : 2,
                  "rowspan" : 1,
                  "elements" : 0,
                  "valign" : 0,
                  "halign" : 0,
                  "style" : 0,
                  "url" : "",
                  "dynamic" : 0,
                  "sort_triggers" : 0,
                  "application" : "",
                  "max_columns" : 3
              }
          ]
      }
      

      Second issue:

      It is possible to set hsize/vsize to zero via API

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sasha Alexander Vladishev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: