Changeset 75745 in spip-zone


Ignore:
Timestamp:
Sep 11, 2013, 12:18:31 PM (6 years ago)
Author:
kent1@…
Message:

Utiliser objet_info('ticket','champs_editables') plutot qu'une sélection en dur

On passe en version 2.7.0

Location:
_plugins_/tickets/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/tickets/trunk/paquet.xml

    r73567 r75745  
    22        prefix="tickets"
    33        categorie="divers"
    4         version="2.6.9"
     4        version="2.7.0"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.0.*]"
  • _plugins_/tickets/trunk/tickets_pipelines.php

    r73565 r75745  
    155155                && is_numeric($flux['args']['contexte']['id_ticket'])){
    156156                $infos_ticket = sql_fetsel('*','spip_tickets','id_ticket='.intval($flux['args']['contexte']['id_ticket']));
    157                 foreach(array('projet','composant','version','severite','navigateur','tracker','id_assigne','exemple') as $champ){
     157                foreach(objet_info('ticket','champs_editables') as $champ){
    158158                        if(_request($champ))
    159159                                $infos_ticket[$champ] = _request($champ);
     
    180180        if (($flux['args']['form']=='forum') AND ($flux['args']['args'][0]=='ticket') && isset($flux['data']['previsu'])) {
    181181                $flux['data']['previsu'] .= '<input type="hidden" name="ticket_statut" value="'._request('ticket_statut').'" />';
    182                 foreach(array('projet','composant','version','severite','navigateur','tracker','id_assigne','exemple') as $champ){
     182                foreach(objet_info('ticket','champs_editables') as $champ){
    183183                        if(_request($champ))
    184184                                $flux['data']['previsu'] .= '<input type="hidden" name="'.$champ.'" value="'._request($champ).'" />';
Note: See TracChangeset for help on using the changeset viewer.