rabin 6 năm trước cách đây
mục cha
commit
ffd3d1ab3c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/Api.php

+ 3 - 0
src/Api.php

@@ -336,6 +336,9 @@ class Api
 		if ($attr) {
 			foreach ($attr as $k => $v) {
 				$sort[$k] = $v[$reorder];
+				if ($v['type_option']) {
+                    $attr[$k]['option'] = explode("\n", $v['type_option']);
+                }
 			}
 			array_multisort($sort, SORT_DESC, $attr);
 		}