fix dictChapters view
This commit is contained in:
parent
66d2211b05
commit
c9be0ecace
@ -9,7 +9,8 @@ class API_DictChapters extends ResourceController {
|
||||
public function index() {
|
||||
$db = \Config\Database::connect();
|
||||
$sql = "select dc.CHAPCODE, dc.SHORTTEXT, cdc.TEXT1, cdc.TEXT2 from DICT_CHAPTERS dc
|
||||
left join cmod.dbo.CM_DICT_CHAPTERS cdc on dc.CHAPCODE=cdc.CHAPCODE";
|
||||
left join cmod.dbo.CM_DICT_CHAPTERS cdc on dc.CHAPCODE=cdc.CHAPCODE
|
||||
where left(dc.SHORTTEXT,2)<>'CH'";
|
||||
$query = $db->query($sql);
|
||||
$results = $query->getResultArray();
|
||||
$data['dictChapters'] = $results;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user