Ignore:
Timestamp:
Oct 26, 2009, 1:36:23 AM (15 years ago)
Author:
LucMorizur
Message:

[Event Cats] the two simplest actions added : delete entry and duplicate entry. Some JS bugs removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/autolog_new.inc.php

    r4092 r4115  
    5454/****************************************************************************/
    5555
    56 build_ec_lists(); // in evntcats_funcs.php
    57 
    58 $ec_lists['duplicable_codes'] = array();
    59 $t = array();
    60 
    61 foreach ($ec_lists['ec_table'] as $ec_entry) {
    62   if (
    63     is_in($ec_entry['action'], 'ec_ok') and
    64     $ec_entry['forced'] == 'false'
    65   ) {
    66     $t[$ec_entry['id']] = $ec_entry['code'];
    67     $ec_lists['duplicable_codes']['codes'][$ec_entry['code']]['id'] =
    68      $ec_entry['id'];
    69     $ec_lists['duplicable_codes']['codes'][$ec_entry['code']]['user_id'] =
    70      $ec_entry['user_id'];
    71   }
    72 }
    73 foreach ($t as $ec_id => $ec_code) {
    74   $ec_lists['duplicable_codes']['ids'][$ec_id] =
    75    $ec_lists['duplicable_codes']['codes'][$ec_code]['id'];
    76 }
    77 
    78 $ec_def_vals = array();
     56build_ec_duplicable_codes();
    7957
    8058$ec_default_action = 'create_ask';
Note: See TracChangeset for help on using the changeset viewer.