@@ -162,7 +162,6 @@ public function search($title = '', $url = null, $options = array()) {
162162 'icon ' => 'search ' ,
163163 'iconSize ' => $ this ->Button ->getButtonSize (),
164164 'class ' => 'btn btn-info ' ,
165- 'tooltip ' => null ,
166165 ), $ options , array ('escapeTitle ' => false ));
167166
168167 if (Hash::get ($ options , 'escapeTitle ' , true )) {
@@ -180,7 +179,7 @@ public function search($title = '', $url = null, $options = array()) {
180179 unset($ inputOptions ['iconSize ' ]);
181180
182181 //span tooltipタグの出力
183- if ($ inputOptions [ 'tooltip ' ] ) {
182+ if (Hash:: get ( $ options , 'tooltip ' , false ) ) {
184183 if (is_string ($ options ['tooltip ' ])) {
185184 $ tooltip = $ options ['tooltip ' ];
186185 } else {
@@ -221,7 +220,6 @@ public function sort($title = '', $url = null, $options = array()) {
221220 'icon ' => 'sort ' ,
222221 'iconSize ' => $ this ->Button ->getButtonSize (),
223222 'class ' => 'btn btn-default ' ,
224- 'tooltip ' => null ,
225223 ), $ options , array ('escapeTitle ' => false ));
226224
227225 if (Hash::get ($ options , 'escapeTitle ' , true )) {
@@ -239,7 +237,7 @@ public function sort($title = '', $url = null, $options = array()) {
239237 unset($ inputOptions ['iconSize ' ]);
240238
241239 //span tooltipタグの出力
242- if ($ options[ 'tooltip ' ] ) {
240+ if (Hash:: get ( $ options, 'tooltip ' , false ) ) {
243241 if (is_string ($ options ['tooltip ' ])) {
244242 $ tooltip = $ options ['tooltip ' ];
245243 } else {
0 commit comments