Ticket #163: 163.diff
| File 163.diff, 1.2 KB (added by nacin, 14 months ago) |
|---|
-
gp-includes/thing.php
372 372 373 373 function fields() { 374 374 $result = array(); 375 foreach( $this->field_namesas $field_name ) {375 foreach( array_merge( $this->field_names, $this->non_db_field_names ) as $field_name ) { 376 376 if ( isset( $this->$field_name ) ) { 377 377 $result[$field_name] = $this->$field_name; 378 378 } … … 402 402 if ( $conditions_str ) $conditions[] = $conditions_str; 403 403 return implode( ' AND ', $conditions ); 404 404 } 405 } 406 No newline at end of file 405 } -
gp-includes/things/translation-set.php
3 3 4 4 var $table_basename = 'translation_sets'; 5 5 var $field_names = array( 'id', 'name', 'slug', 'project_id', 'locale' ); 6 var $non_db_field_names = array( 'current_count', 'untranslated_count', 'waiting_count' ); 6 7 var $non_updatable_attributes = array( 'id' ); 7 8 8 9 function restrict_fields( $set ) {
