Ticket #129: rejected.patch
| File rejected.patch, 1.3 KB (added by haniball, 3 years ago) |
|---|
-
gp-includes/things/translation.php
79 79 if ( 'yes' == gp_array_get( $filters, 'translated' ) ) { 80 80 $where[] = 't.translation_0 IS NOT NULL'; 81 81 } elseif ( 'no' == gp_array_get( $filters, 'translated' ) ) { 82 $where[] = 't.translation_0 IS NULL'; 82 // rejected are untranslated too 83 $where[] = "(t.translation_0 IS NULL OR t.status = 'rejected')"; 83 84 } 84 85 if ( gp_array_get( $filters, 'before_date_added' ) ) { 85 86 $where[] = $gpdb->prepare( 't.date_added > %s', gp_array_get( $filters, 'before_date_added' ) ); … … 192 193 array('original_id' => $this->original_id, 'translation_set_id' => $this->translation_set_id, 'status' => 'waiting') ) 193 194 && $this->update( array('status' => 'old'), 194 195 array('original_id' => $this->original_id, 'translation_set_id' => $this->translation_set_id, 'status' => 'fuzzy') ) 195 && $this->update( array('status' => 'current') ); 196 && $this->update( array('status' => 'old'), 197 array('original_id' => $this->original_id, 'translation_set_id' => $this->translation_set_id, 'status' => 'rejected') ) 198 && $this->update( array('status' => 'current') ); 196 199 } 197 200 198 201 function reject() {
