Skip to content

Commit 8a60db6

Browse files
committed
Notice修正
1 parent 55f64bb commit 8a60db6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

View/Helper/LinkButtonHelper.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)