Переглянути джерело

Adding add_meses_label_to_extra_field_fase function see BT#5186

Julio Montoya 12 роки тому
батько
коміт
4fb649e343
1 змінених файлів з 9 додано та 0 видалено
  1. 9 0
      tests/migrate/migration.custom.class.php

+ 9 - 0
tests/migrate/migration.custom.class.php

@@ -64,6 +64,15 @@ class MigrationCustom {
         return utf8_encode($value);        
         return utf8_encode($value);        
     }
     }
     
     
+    static function add_meses_label_to_extra_field_fase($value, $data, $row_data) {
+        $label = 'meses';
+        if ($row_data['chrOrdenFase'] == 1) {
+            $label = 'mes';    
+        }
+        $value = $row_data['vchNombreFase'] .' ['.trim($row_data['chrOrdenFase']).' '.$label.']';
+        return self::clean_utf8($value);
+    }
+    
     static function clean_session_name($value, $omigrate, $row_data) {
     static function clean_session_name($value, $omigrate, $row_data) {
         return self::clean_utf8($row_data['session_name']);        
         return self::clean_utf8($row_data['session_name']);        
     }
     }