Ad Widget

Collapse

PATCH: FIXED method action.create of API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pasqu
    Junior Member
    • Jun 2007
    • 29

    #1

    PATCH: FIXED method action.create of API

    The functions:

    -validate_operation()
    -check_permission_for_action_conditions()
    -validate_condition()

    are defined in the file "include/actions.inc.php" but this isn't included in the right place.

    To fix just add in the second row of "api/classes/class.caction.php" this row:

    require_once('include/actions.inc.php');

    Example:

    <?php
    require_once('include/actions.inc.php');
    /*
    ** ZABBIX
    ** Copyright (C) 2000-2010 SIA Zabbix
    **


    I'm not sure this is the best place for this include but here just works!!

    Pasqu
    Last edited by pasqu; 12-10-2010, 23:21.
  • walterheck
    Senior Member
    • Jul 2009
    • 153

    #2
    I reported a bug for this last week:

    Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

    Comment

    • Aly
      ZABBIX developer
      • May 2007
      • 1126

      #3
      It's already fixed in zbx 1.8.4 rc1

      p.s. Thanks, of course it should be 1.8.4. Typo fixed
      Last edited by Aly; 14-10-2010, 11:33.
      Zabbix | ex GUI developer

      Comment

      • walterheck
        Senior Member
        • Jul 2009
        • 153

        #4
        Originally posted by Aly
        It's already fixed in zbx 1.8.3 rc1
        Just for correctness sake: that should read 1.8.4 rc1
        Thanks for fixing it!
        Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

        Comment

        Working...