|
|
@@ -13,17 +13,17 @@ class EventoResumenController extends JsonController {
|
|
|
public $modelName = "EventoResumen";
|
|
|
|
|
|
public function actionIndex() {
|
|
|
- $clave = trim($this->req->get("clave", ""));
|
|
|
+ $id = trim($this->req->get("id", ""));
|
|
|
|
|
|
|
|
|
$modelo = EventoResumenDependencia::find()
|
|
|
- ->andWhere(['clave' => $clave])
|
|
|
+ ->andWhere(['id' => $id])
|
|
|
->one();
|
|
|
|
|
|
if ($modelo === null) {
|
|
|
return (new Respuesta())
|
|
|
->esError()
|
|
|
- ->mensaje("Clave no válida");
|
|
|
+ ->mensaje("ID no válida");
|
|
|
}
|
|
|
|
|
|
$query = $this->queryInicial
|