ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 12015


Ignore:
Timestamp:
Jun 24, 2009, 7:57:19 PM (11 years ago)
Author:
ShogoKawahara
Message:

#4030:fixed GadgetTable? doesn't sort or delete gadgets

Location:
OpenPNE3/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_backend/modules/design/templates/gadgetSuccess.php

    r11224 r12015  
    1717
    1818<div>
    19 <form id="gadgetForm" action="<?php url_for('design/gadget?type='.$type) ?>" method="post">
     19<form id="gadgetForm" action="<?php echo url_for('design/gadget?type='.$type) ?>" method="post">
    2020<?php foreach ($gadgets as $gadgetType => $item): ?>
    2121<?php if ($item): ?>
  • OpenPNE3/trunk/lib/model/doctrine/GadgetTable.class.php

    r11479 r12015  
    6565  public function getGadgetsIds($type)
    6666  {
    67     return $this->createQuery()
     67    $_result = $this->createQuery()
    6868      ->select('id')
    69       ->where('type', $type)
     69      ->where('type = ?', $type)
    7070      ->orderBy('sort_order')
    71       ->fetchArray();
     71      ->execute();
     72   
     73    $result = array();
     74
     75    foreach ($_result as $value)
     76    {
     77      $result[] = $value->getId();
     78    }
     79
     80    return $result;
    7281  }
    7382
Note: See TracChangeset for help on using the changeset viewer.