Show
Ignore:
Timestamp:
09/07/06 08:23:08 (7 years ago)
Author:
benoitg
Message:
  • Fix non persistent content being available to add to nodes,

networks and content groups.

  • Prevent a user from entering the same language twice in a

langstring. Fixes #226

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Content/Langstring/Langstring.php

    r1092 r1094  
    260260        $liste_languages = new LocaleList(); 
    261261        $sql = "SELECT * FROM content_langstring_entries WHERE content_langstring_entries.langstrings_id = '$this->id' ORDER BY locales_id"; 
    262         $this->mBd->execSql($sql, $result, FALSE); //echo "type_interface: $type_interface\n"; 
    263  
    264  
    265  
     262        $this->mBd->execSql($sql, $result, false); //echo "type_interface: $type_interface\n"; 
     263 
     264 
     265                $exclude_array = array(); 
    266266        if ($result != null) { 
    267267            while (list ($key, $value) = each($result)) { 
     268                $exclude_array[$value['locales_id']] = $value['locales_id']; 
    268269//                The next lines are a preview of a new suggested input mode 
    269270//                ========================================================== 
     
    370371        $html .= "<div class='admin_element_data'>\n"; 
    371372 
    372         $html .= _("Language") . ": " . $liste_languages->GenererFormSelect($locale, "langstrings_".$this->id."_substring_new_language", 'Langstring::AfficherInterfaceAdmin', TRUE); 
     373        $html .= _("Language") . ": " . $liste_languages->GenererFormSelect($locale, "langstrings_".$this->id."_substring_new_language", 'Langstring::AfficherInterfaceAdmin', TRUE, $exclude_array); 
    373374        $new_substring_name = "langstrings_".$this->id."_substring_new_string"; 
    374375