summaryrefslogtreecommitdiff
path: root/public/app/models/Content_model.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-06-06 00:46:19 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-06-06 00:46:19 +0300
commit1388a64651f1c61a6aafc32f8e3e60f7a6ffd339 (patch)
treedd5bcd7b438929ffec89d32011144831eebabb06 /public/app/models/Content_model.php
parentd5475ce60729c3f743a6451b42072f1a13ffed59 (diff)
downloadgyraf1gov-1388a64651f1c61a6aafc32f8e3e60f7a6ffd339.tar.gz
gyraf1gov-1388a64651f1c61a6aafc32f8e3e60f7a6ffd339.tar.bz2
gyraf1gov-1388a64651f1c61a6aafc32f8e3e60f7a6ffd339.zip
admin petition ready
Diffstat (limited to 'public/app/models/Content_model.php')
-rw-r--r--public/app/models/Content_model.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/app/models/Content_model.php b/public/app/models/Content_model.php
index 1f145a0..cfe418f 100644
--- a/public/app/models/Content_model.php
+++ b/public/app/models/Content_model.php
@@ -91,7 +91,10 @@ class Content_model {
public static function all_petitions()
{
return Registry::use('database')->runQuery(
- "SELECT * FROM petition",
+ "SELECT petition.*,
+ CONCAT(user.last_name, ' ', user.first_name) as UserName
+ FROM petition
+ LEFT JOIN user ON user.id = petition.user_id",
[]
);
}