Commit 687e4c10 authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

tweaks

parent d22d38a9
......@@ -124,7 +124,7 @@
<li class="answerLi col-xs-12" <?php echo $liBg ?>>
<div class="col-xs-3 text-center">
<a href="<?php echo Yii::app()->createUrl("/costum")?>/co/index/slug/<?php echo $el["slug"] ?>/answer/<?php echo $ans["_id"] ?>"> <?php echo $lbl ?></a>
<a href="#answer.index.id.<?php echo $ans["_id"] ?>" class="lbh"> <?php echo $lbl ?></a>
</div>
<div class="col-xs-8">
......
......@@ -467,11 +467,14 @@ echo "<h4 style='color:".(($titleColor) ? $titleColor : "black")."'>Suivi des d
<form id="form-add-todo" class="form-add-todo">
<!-- <label for="todo">To do:</label> -->
<?php
$uids = [];;
foreach (array_keys($el["links"]["members"]) as $ix => $id) {
$uids[] = new MongoId($id);
$uids = [];
if(isset($el["links"]["members"])){
foreach (array_keys($el["links"]["members"]) as $ix => $id) {
$uids[] = new MongoId($id);
}
}
$members = PHDB::find ( Person::COLLECTION, [ "_id" => [ '$in' => $uids ] ] , ["name","username"] );
?>
<!-- <textarea id="new-todo-item" class="new-todo-item col-xs-5" name="todo" placeholder="Quoi"></textarea> -->
<div class="col-xs-12">
......
......@@ -9,7 +9,7 @@ $paramsData = [ "options" => [ ] ];
if( isset($this->costum["form"]["params"][$key]) )
$paramsData = $this->costum["form"]["params"][$key];
if(!isset($options))
if(!isset($options) && isset($this->costum["form"]["params"][$key]['options']))
$options = $this->costum["form"]["params"][$key]['options'];
if($mode == "r"){ ?>
......
......@@ -206,7 +206,7 @@ jQuery(document).ready(function() {
contextData = {
id : "<?php echo $this->costum["contextId"] ?>",
type : "<?php echo $this->costum["contextType"] ?>",
name : '<?php echo htmlentities($el['name']) ?>',
name : "<?php echo htmlspecialchars($el['name']) ?>",
profilThumbImageUrl : "http://127.0.0.1/ph/themes/CO2/assets/img/LOGOS/CO2/logo-min.png"
};
getAjax("community",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment